/*
 * @Author: g05047
 * @Date: 2021-09-08 15:04:19
 * @LastEditors: g05047
 * @LastEditTime: 2022-05-16 10:01:25
 * @Description: file content
 */
import request from '@/utils/request';
let { VUE_APP_ADMIN_API } = process.env;
export default {
   //------------------------------------------------食安课堂--------------------------------------------------------
   saveClassroom: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/class/AddFoodSafetyClass`, data),
   // 获取食安类别列表
   findSafetyCategory: data => request.get(`${VUE_APP_ADMIN_API}/food/safety/class/findSafetyCategory`, data),
   // 获取视屏列表
   findFoodSafetyClassList: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/class/findFoodSafetyClassList`, data),
   // s删除视频
   deleteById: data => request.get(`${VUE_APP_ADMIN_API}/food/safety/class/deleteById`, data),
   // 获取食安类别列表
   updateFindSafety: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/class/updateFoodSafetyClass`, data),
   //------------------------------------------------食安公告--------------------------------------------------------
   // 新增食安公告
   saveFoodSafetyNotice: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/notice/saveFoodSafetyNotice`, data),
   // 查询单个食安公告
   findById: data => request.get(`${VUE_APP_ADMIN_API}/food/safety/notice/findById`, data),

   // 查询单个食安公告
   updateNotice: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/notice/update-food-safety-notice`, data),
   // 获取食安公告列表
   findFoodSafetyNoticeList: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/notice/find-notice-list`, data),
   // 获取食安公告列表
   noticeDeleteById: data => request.get(`${VUE_APP_ADMIN_API}/food/safety/notice/deleteById`, data),
   // 编辑食安公告
   modifyFoodSafetyNotice: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/notice/update-food-safety-notice`, data),
   // 新增食安政策
   saveFoodSafetyPolicy: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/policy/saveFoodSafetyPolicy`, data),
   // 获取食安政策列表
   findFoodSafetyPolicyList: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/policy/find-Policy-list`, data),

   // 获取食安政策列表
   policyFindById: data => request.get(`${VUE_APP_ADMIN_API}/food/safety/policy/findById`, data),



   // 获取食安政策列表
   policyUpdate: data => request.post(`${VUE_APP_ADMIN_API}/food/safety/policy/update-food-safety-policy`, data),

   // 获取食安政策列表
   deleteByIdPolicy: data => request.get(`${VUE_APP_ADMIN_API}/food/safety/policy/deleteById`, data),


   // 获取食安政策列表
   statuteList: data => request.post(`${VUE_APP_ADMIN_API}/food/law/statute/find-law-statute-list`, data),


   // 保存法律法规
   saveFoodLawStatute: data => request.post(`${VUE_APP_ADMIN_API}/food/law/statute/saveFoodLawStatute`, data),

   // 保存法律法规
   statuteDeleteById: data => request.get(`${VUE_APP_ADMIN_API}/food/law/statute/deleteById`, data),
   // 保存法律法规
   statuteFindById: data => request.get(`${VUE_APP_ADMIN_API}/food/law/statute/findById`, data),
   // 保存法律法规
   safetyStatute: data => request.post(`${VUE_APP_ADMIN_API}/food/law/statute/update-food-safety-law-statute`, data),


   // 保存法律法规
   viseUnit: data => request.post(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/find-ssa-super-viseunit-list`, data),

   // 保存法律法规
   findUnitBodyIndustryLink: data => request.get(`${VUE_APP_ADMIN_API}/unit/body/industry/findUnitBodyIndustryLink`, data),

   // 保存法律法规
   findAreaListNoParentByParentCode: data => request.get(`${VUE_APP_ADMIN_API}/area/group`, data),

   //获取苏食安短信提醒记录
   getSsaMessageRemindRecord: data => request.post(`${VUE_APP_ADMIN_API}/sms/notification/findSmsNotificationApplet`, data, { loading: true })
};
